﻿using System;
using System.Collections.Generic;
using Web7.Core.Apps;
using Web7.Core.Security;

namespace Web7.Apps.Account
{
    public class Permissions : IPermissionProvider
    {
        public static readonly Permission ManageAccount = new Permission { Description = "Manage Account", Name = "ManageAccount", Id = new Guid("B6E161DA-309F-4D1E-B1F1-CF9715CCE7BD") };

        public List<AppMenuItem> GetAppMenus()
        {

            return null;
//             return new List<AppMenuItem>()
//             {
//                 new AppMenuItem()
//                 {
//                     Title = "用户管理",
//                     ContentRouteName = "",
//                     Permission = "ManageAccount",
//                     SubMenuRouteName = ""
//                 },
//                 new AppMenuItem()
//                 {
//                     Title = "用户创建",
//                     ContentRouteName = "",
//                     Permission = "AccountCreate",
//                     SubMenuRouteName = ""
//                 },
//                 new AppMenuItem()
//                 {
//                     Title = "权限列表",
//                     ContentRouteName = "",
//                     Permission = "PermissionRecords",
//                     SubMenuRouteName = ""
//                 }
//             };
        }

        public IEnumerable<Permission> GetPermissions()
        {
            return new[] 
             {
                 ManageAccount
             };
        }
    }
}
